﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WareHouse.Domain.Procurements
{
    /// <summary>
    /// 采购产品表
    /// </summary>
    [SugarTable("Shopping")]
    public class Shopping : AuditInfo
    {
        /// <summary>
        /// 采购产品ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long ShoppingId { get; set; }

        /// <summary>
        /// 产品ID 外键
        /// </summary>
        public string ProductId { get; set; }

        /// <summary>
        /// 采购单号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string ProcurementCode { get; set; }

        /// <summary>
        /// 购买数量
        /// </summary>
        public int BuyNumber { get; set; }

        /// <summary>
        /// 总价
        /// </summary>
        public decimal SumPrice { get; set; }
    }
}
